﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UserSystem.Entity.Mapping
{
    public class UserMap : EntityTypeConfiguration<User>
    {
        public UserMap()
        {
            this.ToTable("User");
            this.HasKey(x => x.UserId);

            this.Property(x => x.UserId).HasColumnName("UserId");
            this.Property(x => x.UserName).HasColumnName("UserName").HasMaxLength(16);
            this.Property(x => x.Password).HasColumnName("Password").HasMaxLength(40);

        }
    }
}
